package first.niuke.simple;

/**
 * @ClassName NC68
 * @description:
 * @author: 荣燊
 * @create: 2021-04-09 14:39
 **/
public class NC68 {
    public static void main(String[] args) {
        System.out.println(jumpFloor(5));
    }

    public static int jumpFloor(int target) {
        if (target == 1 || target == 2) {
            return 1;
        }
        return jumpFloor(target-1)+jumpFloor(target-2);
    }
}
